package com.hitqz.robot.driver.dto.robot;

import java.io.Serializable;

/**
 * @author xupkun
 * @date 2023/8/3
 */
public class RobotCurrentLockDto implements Serializable {


    private static final long serialVersionUID = 7030310352670506876L;

    //所有权是否被抢占")
    private boolean locked;

    //ip")
    private String ip;

    //端口")
    private int port;

    //0x00=default, 0x02=robotShop, 0xDD=srd")
    private int type;

    //控制权所有者")
    //nick_name")
    private String nickName;


    //抢占控制权的时间戳")
    //time_t")
    private long timeT;

    private String desc;

    //ret_code")
    private int retCode;

    //create_on")
    private String createOn;

    //err_msg")
    private String errMsg;

    public boolean isLocked() {
        return locked;
    }

    public void setLocked(boolean locked) {
        this.locked = locked;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public long getTimeT() {
        return timeT;
    }

    public void setTimeT(long timeT) {
        this.timeT = timeT;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getRetCode() {
        return retCode;
    }

    public void setRetCode(int retCode) {
        this.retCode = retCode;
    }

    public String getCreateOn() {
        return createOn;
    }

    public void setCreateOn(String createOn) {
        this.createOn = createOn;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
